
#pragma once

#include <stdbool.h>
#include <stdio.h>
#include "common/filedbdefs.h"

//
// file database
//

struct FileDb;

typedef bool (* ResultReceiver)(const char * city);

struct FileDb * load_file_db(FILE * fsrc, ResultReceiver receiver);

void free_file_db(struct FileDb * db);

bool file_db_query(struct FileDb * db, const char * query);
